/**
 * Copyright 2009 by Christian Scheid. This file is part of the switch eclipse plugin and is licensed under the
 * GPL version 3. Please refer to the URL http://www.gnu.org/licenses/gpl-3.0.html for details.
 */
package org.digitalsoul.switchplugin.model;

import java.util.ArrayList;
import java.util.List;


public class SwitchSet {

    private String name;
    private final String version = "1.0";
    private List<IConfigSwitchItem> items;
    
    public SwitchSet(String name) {
        this.name = name;
        this.items = new ArrayList<IConfigSwitchItem>();
    }
    
    public List<IConfigSwitchItem> getItems() {
        return items;
    }

    public String getName() {
        return name;
    }

    public void replaceItems(List<IConfigSwitchItem> newItems) {
        items.clear();
        items.addAll(newItems);
    }
}
